package com.snowRemovingUser.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 操作统计对象 t_oper_statistics
 *
 * @author liguang
 * @date 2023-04-28
 */
public class TOperStatistics extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 操作统计主键 */
    private Long id;

    /** 操作类型 */
    @Excel(name = "操作类型")
    private Integer operType;

    /** 操作次数 */
    @Excel(name = "操作次数")
    private Integer operNo;

    /** 统计时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Excel(name = "统计时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOperType(Integer operType)
    {
        this.operType = operType;
    }

    public Integer getOperType()
    {
        return operType;
    }
    public void setOperNo(Integer operNo)
    {
        this.operNo = operNo;
    }

    public Integer getOperNo()
    {
        return operNo;
    }
    public void setOperTime(Date operTime)
    {
        this.operTime = operTime;
    }

    public Date getOperTime()
    {
        return operTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("operType", getOperType())
            .append("operNo", getOperNo())
            .append("operTime", getOperTime())
            .toString();
    }
}
